﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Itech_Run.Sys.EntityFrameworkCore.Migrations
{
    public partial class init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Sys_Button",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Button", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_Dictionary",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Category = table.Column<int>(type: "int", nullable: false),
                    CodeType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Value = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    IsShow = table.Column<bool>(type: "bit", nullable: true),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Dictionary", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_Job",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    JobGroup = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Description = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    CronExpression = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    LastTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    RedundancyMinute = table.Column<int>(type: "int", nullable: false),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    ApiUrl = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Job", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_Module",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ApplicationCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    Level = table.Column<int>(type: "int", nullable: false),
                    Url = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
                    IsShowUI = table.Column<bool>(type: "bit", nullable: true),
                    IconName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    AssemblyName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    ApiController = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    ParentId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Module", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_Module_Sys_Module_ParentId",
                        column: x => x.ParentId,
                        principalTable: "Sys_Module",
                        principalColumn: "Id");
                });

            migrationBuilder.CreateTable(
                name: "Sys_ProcedureException",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    ErrorProcedure = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
                    ErrorNumber = table.Column<int>(type: "int", nullable: true),
                    ErrorSeverity = table.Column<int>(type: "int", nullable: true),
                    ErrorState = table.Column<int>(type: "int", nullable: true),
                    ErrorLine = table.Column<int>(type: "int", nullable: true),
                    ErrorMessage = table.Column<string>(type: "nvarchar(4000)", maxLength: 4000, nullable: true),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_ProcedureException", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_Role",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    Description = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Role", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_TokenGrey",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Token = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_TokenGrey", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_User",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Category = table.Column<int>(type: "int", nullable: false),
                    UserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Sex = table.Column<int>(type: "int", nullable: true),
                    Birthdate = table.Column<DateTime>(type: "dateTime", nullable: true),
                    Nickname = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    MobileNo = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    Email = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PersonalImage = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Password = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    IsActive = table.Column<bool>(type: "bit", nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_User", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Sys_ModuleButton",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ModuleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ButtonId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_ModuleButton", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_ModuleButton_Sys_Button_ButtonId",
                        column: x => x.ButtonId,
                        principalTable: "Sys_Button",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_Sys_ModuleButton_Sys_Module_ModuleId",
                        column: x => x.ModuleId,
                        principalTable: "Sys_Module",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Sys_RoleModule",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    RoleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ModuleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_RoleModule", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_RoleModule_Sys_Module_ModuleId",
                        column: x => x.ModuleId,
                        principalTable: "Sys_Module",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_Sys_RoleModule_Sys_Role_RoleId",
                        column: x => x.RoleId,
                        principalTable: "Sys_Role",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Sys_RoleModuleButton",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    RoleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ModuleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    ButtonId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    HasAuth = table.Column<bool>(type: "bit", nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_RoleModuleButton", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_RoleModuleButton_Sys_Button_ButtonId",
                        column: x => x.ButtonId,
                        principalTable: "Sys_Button",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_Sys_RoleModuleButton_Sys_Module_ModuleId",
                        column: x => x.ModuleId,
                        principalTable: "Sys_Module",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_Sys_RoleModuleButton_Sys_Role_RoleId",
                        column: x => x.RoleId,
                        principalTable: "Sys_Role",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Sys_Resume",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    UserId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Content = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_Resume", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_Resume_Sys_User_UserId",
                        column: x => x.UserId,
                        principalTable: "Sys_User",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Sys_User_RefreshToken",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    UserId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    Token = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: false),
                    ExpiredTime = table.Column<DateTime>(type: "dateTime", nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_User_RefreshToken", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_User_RefreshToken_Sys_User_UserId",
                        column: x => x.UserId,
                        principalTable: "Sys_User",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Sys_UserRole",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    UserId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    RoleId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
                    CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    CreatedTime = table.Column<DateTime>(type: "dateTime", nullable: true),
                    LastModifiedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
                    LastModifiedTime = table.Column<DateTime>(type: "dateTime", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sys_UserRole", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Sys_UserRole_Sys_Role_RoleId",
                        column: x => x.RoleId,
                        principalTable: "Sys_Role",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_Sys_UserRole_Sys_User_UserId",
                        column: x => x.UserId,
                        principalTable: "Sys_User",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "Sys_Button",
                columns: new[] { "Id", "Code", "CreatedBy", "CreatedTime", "LastModifiedBy", "LastModifiedTime", "Name", "Sort" },
                values: new object[,]
                {
                    { "27d8718b-02fe-4705-9403-da9692d2f716", "delete", null, null, null, null, "删除", 3 },
                    { "2a462743-2ffe-479e-9753-80a38638ae76", "add", null, null, null, null, "新增", 1 },
                    { "9b89658a-3513-40fd-9c11-302519eda67e", "edit", null, null, null, null, "编辑", 2 },
                    { "b50cce3d-aef6-40b6-97ef-9f81d81be485", "save", null, null, null, null, "保存", 4 }
                });

            migrationBuilder.InsertData(
                table: "Sys_Dictionary",
                columns: new[] { "Id", "Category", "Code", "CodeType", "CreatedBy", "CreatedTime", "IsActive", "IsShow", "LastModifiedBy", "LastModifiedTime", "Name", "Remark", "Sort", "Value" },
                values: new object[,]
                {
                    { "08ab57bf-3128-44b6-a5e5-02dab98df738", 1, "1", "3", null, null, true, true, null, null, "普通", "字典类型", 1, "" },
                    { "1d90c8a0-1b1a-41ee-a1a0-0bda31e1c661", 1, "2", "1", null, null, true, false, null, null, "所属应用", "字典类别", 1, "" },
                    { "8fa21c1f-3907-4294-a0a3-071e73a799bb", 1, "Back", "2", null, null, true, true, null, null, "管理后台", "所属应用", 1, "" },
                    { "d6837d77-c83f-4cf1-93cb-c9b8fd0ac8e3", 1, "2", "3", null, null, true, true, null, null, "附件", "字典类型", 2, "" },
                    { "f3d41cb7-2dc8-496c-b1d1-8ee20eed8bc7", 1, "3", "1", null, null, true, false, null, null, "字典类型", "字典类别", 2, "" }
                });

            migrationBuilder.InsertData(
                table: "Sys_Module",
                columns: new[] { "Id", "ApiController", "ApplicationCode", "AssemblyName", "CreatedBy", "CreatedTime", "IconName", "IsActive", "IsShowUI", "LastModifiedBy", "LastModifiedTime", "Level", "Name", "ParentId", "Sort", "Url" },
                values: new object[,]
                {
                    { "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "", "Back", "", null, null, null, true, true, null, null, 1, "模块管理", "", 4, "/module" },
                    { "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "", "Back", "", null, null, null, true, true, null, null, 1, "字典管理", "", 5, "/dictionary" },
                    { "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "", "Back", "", null, null, null, true, true, null, null, 1, "文章管理", "", 10, "/article" },
                    { "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "", "Back", "", null, null, null, true, true, null, null, 1, "角色管理", "", 3, "/role" },
                    { "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "", "Back", "", null, null, null, true, true, null, null, 1, "用户管理", "", 1, "/user" }
                });

            migrationBuilder.InsertData(
                table: "Sys_Role",
                columns: new[] { "Id", "CreatedBy", "CreatedTime", "Description", "IsActive", "LastModifiedBy", "LastModifiedTime", "Name" },
                values: new object[] { "22472e1c-1ec3-4077-b654-1b8a19ebaa0a", null, null, null, true, null, null, "Admin" });

            migrationBuilder.InsertData(
                table: "Sys_User",
                columns: new[] { "Id", "Birthdate", "Category", "CreatedBy", "CreatedTime", "Email", "IsActive", "LastModifiedBy", "LastModifiedTime", "MobileNo", "Name", "Nickname", "Password", "PersonalImage", "Remark", "Sex", "Sort", "UserName" },
                values: new object[] { "9cf471c1-fffe-487c-a560-3fd8ced7a54d", null, 0, null, null, null, true, null, null, null, "管理员", "管理员1", "8IhndC4+1+9hvc13NO/YxQ==", null, null, null, 1, "Admin" });

            migrationBuilder.InsertData(
                table: "Sys_Module",
                columns: new[] { "Id", "ApiController", "ApplicationCode", "AssemblyName", "CreatedBy", "CreatedTime", "IconName", "IsActive", "IsShowUI", "LastModifiedBy", "LastModifiedTime", "Level", "Name", "ParentId", "Sort", "Url" },
                values: new object[,]
                {
                    { "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "BlogInfo", "Back", "Itech_Run.Blog.HttpApi", null, null, null, true, false, null, null, 2, "编辑文章", "d83c3609-2a7e-4baf-9ce6-7fb281c58825", 3, "edit/:id" },
                    { "67af5c22-d4cc-438e-9a75-81f29b78557e", "SysDictionary", "Back", "Itech_Run.Sys.HttpApi", null, null, null, true, true, null, null, 2, "字典列表", "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", 1, "list" },
                    { "76380c0f-26ba-48d4-9ea4-796129610a3a", "SysModule", "Back", "Itech_Run.Sys.HttpApi", null, null, null, true, true, null, null, 2, "模块列表", "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", 1, "list" },
                    { "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "SysRole", "Back", "Itech_Run.Sys.HttpApi", null, null, null, true, true, null, null, 2, "角色列表", "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", 1, "list" },
                    { "ac3f02aa-0357-4801-9c0e-59d3027c8180", "BlogInfo", "Back", "Itech_Run.Blog.HttpApi", null, null, null, true, true, null, null, 2, "创建文章", "d83c3609-2a7e-4baf-9ce6-7fb281c58825", 2, "create" },
                    { "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "BlogInfo", "Back", "Itech_Run.Blog.HttpApi", null, null, null, true, true, null, null, 2, "文章列表", "d83c3609-2a7e-4baf-9ce6-7fb281c58825", 1, "list" },
                    { "c4a2a497-9faa-4587-bd66-83db4ca1328c", "SysUser", "Back", "Itech_Run.Sys.HttpApi", null, null, null, true, true, null, null, 2, "用户列表", "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", 1, "list" }
                });

            migrationBuilder.InsertData(
                table: "Sys_RoleModule",
                columns: new[] { "Id", "CreatedBy", "CreatedTime", "LastModifiedBy", "LastModifiedTime", "ModuleId", "RoleId" },
                values: new object[,]
                {
                    { "107258da-d3b3-4a11-af2e-f53e6e64bf27", null, null, null, null, "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "2403b6dd-587c-4ec5-9861-2a17564f825d", null, null, null, null, "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "4338478f-a05d-4de9-b18b-f1dcc57678ce", null, null, null, null, "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "4f6490f2-c433-4eb0-add6-e14c221eda2a", null, null, null, null, "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "db35dc1f-631f-42c6-846f-7838f3f35d44", null, null, null, null, "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" }
                });

            migrationBuilder.InsertData(
                table: "Sys_RoleModuleButton",
                columns: new[] { "Id", "ButtonId", "CreatedBy", "CreatedTime", "HasAuth", "LastModifiedBy", "LastModifiedTime", "ModuleId", "RoleId" },
                values: new object[,]
                {
                    { "07b78a6b-d682-4522-8c1b-86edc2011709", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "198eb7d5-f05b-48d2-94a7-262d38a37a68", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "2263e5f8-5f79-4f9d-a64f-6e59604777c9", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "29f4f6a7-e6d9-4fee-85fe-03167b6677e2", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "3764c26a-6dab-4d13-aec0-73a3b93e9081", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "4389b56e-865d-4a5a-8223-4d3a30e2da5b", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "496ebed0-f3d8-480e-9eb0-d694c3bfc7be", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "6749276b-23ab-4f33-8cfc-0f81620fb90c", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "83491faa-1a1e-455d-bb65-8c13eeb655df", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "886cde20-0e87-4393-9b9d-988321893bef", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "8cb481e4-7b5b-4a9b-ad40-3dcb18589e0e", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "940b896c-dda1-4b9f-a71b-63034bad5355", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "99470233-de01-44e7-93fa-42bb7d0716d4", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "9a6e772d-732a-4b35-9128-695d845d896d", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "aa9c9d17-6cf4-4d6a-aa76-1b44c5105ed8", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "bc5dd930-a825-44fc-8e7a-320d69de9161", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "6916fd0e-8550-49f0-a8b6-d6a9c48af10e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "bfd3acf7-111c-4c12-ab65-930fbaf880c0", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "d83c3609-2a7e-4baf-9ce6-7fb281c58825", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "c47c3ad4-f538-43c7-ade2-bde89879fba4", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "945157b9-6a4b-4a9d-bfd9-5b5616f216f3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "d2a6a74e-1580-492c-8ab0-55a8be31433c", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "e9a079eb-5eb2-4ecc-b731-89d1608f1cc3", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "d8810c60-e45f-424c-ac05-d330ee840934", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "dec3d92e-454d-4a68-a8c4-e687acbc5e5c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" }
                });

            migrationBuilder.InsertData(
                table: "Sys_UserRole",
                columns: new[] { "Id", "CreatedBy", "CreatedTime", "LastModifiedBy", "LastModifiedTime", "RoleId", "UserId" },
                values: new object[] { "b5b932a5-1805-467a-a070-6d2f6fe08a0b", null, null, null, null, "22472e1c-1ec3-4077-b654-1b8a19ebaa0a", "9cf471c1-fffe-487c-a560-3fd8ced7a54d" });

            migrationBuilder.InsertData(
                table: "Sys_ModuleButton",
                columns: new[] { "Id", "ButtonId", "CreatedBy", "CreatedTime", "LastModifiedBy", "LastModifiedTime", "ModuleId" },
                values: new object[,]
                {
                    { "180c2894-5555-45d0-ac42-a9bff3628135", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96" },
                    { "181e64e5-9a35-4289-92f7-75a4377c828a", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96" },
                    { "25aeb87c-8c25-4232-a03e-12d2b3f70bab", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c" },
                    { "29d77ec3-6367-45bd-b868-420f2f02ceb5", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c" },
                    { "29ef6553-39b4-484b-a517-5b9f9ed7de5d", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2" },
                    { "3d906138-ebf2-4cc8-9dd3-423f048a67ce", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c" },
                    { "47a5d5b9-4093-4d8e-ae6a-abce53cc8809", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e" },
                    { "47d67675-0685-4269-99c7-7cd522ae9e88", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2" },
                    { "48c2f899-af08-497b-a70e-6d62c3c67f5e", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96" },
                    { "4ae0b4a5-147f-4efa-9f0e-ad041cc04bbe", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e" },
                    { "62407ff8-962e-4ee2-bfdd-ab5a30d948e9", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e" },
                    { "7151df58-548c-4f39-9b17-e5fc9adc3655", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96" },
                    { "7fa61ff4-d9f7-49d9-8af2-7e24f31a2be7", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a" },
                    { "90d1765b-c3bf-4ccd-a351-b19d814a5e4a", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a" },
                    { "92941032-d063-4ce6-864e-f223df6bf84e", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2" },
                    { "a9b4ff23-4e7d-4490-8de1-b7bf9ff6845f", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a" },
                    { "b160ce44-5eb1-497b-b382-a49fa0d3b983", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c" },
                    { "bb577ec9-e3fe-48eb-b827-4d6cdd025e76", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a" },
                    { "dd28955d-a3f2-45d6-89b1-55a0afaaf789", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e" },
                    { "fefa3109-62a9-43e1-85e0-f8342c0c01d8", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2" }
                });

            migrationBuilder.InsertData(
                table: "Sys_RoleModule",
                columns: new[] { "Id", "CreatedBy", "CreatedTime", "LastModifiedBy", "LastModifiedTime", "ModuleId", "RoleId" },
                values: new object[,]
                {
                    { "0ebbfd87-1236-4a40-befc-4e24b9506aa9", null, null, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "24a08b75-a4f2-4487-88db-708520659648", null, null, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "24e75377-e980-4714-b0b7-648b62eac096", null, null, null, null, "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "ac9b8e19-11bf-405f-a45c-af3ea99b7668", null, null, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "b0c3ffb8-b071-4218-823b-7ae9362a8192", null, null, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "d002ae33-fe08-46d8-835d-2f41735dd1cc", null, null, null, null, "ac3f02aa-0357-4801-9c0e-59d3027c8180", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "e136b6fc-86bc-4b06-9e92-d6c047b4c430", null, null, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" }
                });

            migrationBuilder.InsertData(
                table: "Sys_RoleModuleButton",
                columns: new[] { "Id", "ButtonId", "CreatedBy", "CreatedTime", "HasAuth", "LastModifiedBy", "LastModifiedTime", "ModuleId", "RoleId" },
                values: new object[,]
                {
                    { "0eb69837-cab0-40ac-b6a6-aeb32f3df7c9", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "1a1fbc2e-facb-41f4-97d1-bced0b5c7dfd", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "1f6a4164-a3e1-4764-8cdc-e024a169f2ed", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "ac3f02aa-0357-4801-9c0e-59d3027c8180", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "20fb81e2-affa-48ec-accb-1d758d91e662", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "ac3f02aa-0357-4801-9c0e-59d3027c8180", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "29361f4f-10c7-4402-97e3-c14c0c0a729e", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "2c211b22-ec65-4fa6-8d61-d9c84080aef7", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "2f9b851a-5074-4346-9ea4-ef30e227c97e", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "30420697-3f45-4575-8ad7-510a0249fe93", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "32355564-5095-44ca-861e-64e00427dcb4", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "39501d24-63a2-4e22-a798-291c6ed8452d", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "44cca736-8b4a-4c3e-a817-14a7370aa80e", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "4b6dd8c4-ea8e-42bf-8f4b-1bb0921d4c30", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "58ecd657-74da-4a75-84f4-7d468a352f13", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "637d8e5c-d35f-4d9e-97cb-75b44703c320", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "ac3f02aa-0357-4801-9c0e-59d3027c8180", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "68b43f6e-5dd2-455c-bf13-f4127df1c8a1", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" }
                });

            migrationBuilder.InsertData(
                table: "Sys_RoleModuleButton",
                columns: new[] { "Id", "ButtonId", "CreatedBy", "CreatedTime", "HasAuth", "LastModifiedBy", "LastModifiedTime", "ModuleId", "RoleId" },
                values: new object[,]
                {
                    { "699c136c-4cfb-49f8-9e2a-0cb58174bd43", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "7fdb09d8-5c35-4e25-a0fd-342926559681", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "8dc84ab3-5bdc-40ea-b644-7089cfa74b01", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "94ce4d96-46ef-4b3c-a822-8996707de2dc", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "9a5529a4-070a-4b66-855f-505d65a66765", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "67af5c22-d4cc-438e-9a75-81f29b78557e", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "bb087d07-7224-4e19-91de-0900ae51ac04", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "ce1f629b-be37-4d84-8d44-633e1e3c0b95", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "d041823b-2c43-42ce-813e-b2dbf7a6a60f", "2a462743-2ffe-479e-9753-80a38638ae76", null, null, true, null, null, "9610aebe-32cc-4cb1-a68d-16ac4e493df2", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "d4e292f6-ac48-4427-9106-3d7c9ef62478", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "ac3f02aa-0357-4801-9c0e-59d3027c8180", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "e903564b-b1a7-4ee7-a71a-dfeb1023ed46", "9b89658a-3513-40fd-9c11-302519eda67e", null, null, true, null, null, "c4a2a497-9faa-4587-bd66-83db4ca1328c", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "eaaa279f-9e80-4f24-9134-c35149a9c9e9", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "2d8f4795-aacc-49f6-91a1-1f406ee3c210", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "f3e7708c-86a7-4473-b8cd-640a4ef3c8ca", "27d8718b-02fe-4705-9403-da9692d2f716", null, null, true, null, null, "af951da6-d2e9-416a-a4c9-7e7c9155ce96", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" },
                    { "f7283453-a24d-4009-8044-71cf4e3f564e", "b50cce3d-aef6-40b6-97ef-9f81d81be485", null, null, true, null, null, "76380c0f-26ba-48d4-9ea4-796129610a3a", "22472e1c-1ec3-4077-b654-1b8a19ebaa0a" }
                });

            migrationBuilder.CreateIndex(
                name: "IX_Sys_Module_ParentId",
                table: "Sys_Module",
                column: "ParentId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_ModuleButton_ButtonId",
                table: "Sys_ModuleButton",
                column: "ButtonId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_ModuleButton_ModuleId",
                table: "Sys_ModuleButton",
                column: "ModuleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_Resume_UserId",
                table: "Sys_Resume",
                column: "UserId",
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_Sys_RoleModule_ModuleId",
                table: "Sys_RoleModule",
                column: "ModuleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_RoleModule_RoleId",
                table: "Sys_RoleModule",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_RoleModuleButton_ButtonId",
                table: "Sys_RoleModuleButton",
                column: "ButtonId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_RoleModuleButton_ModuleId",
                table: "Sys_RoleModuleButton",
                column: "ModuleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_RoleModuleButton_RoleId",
                table: "Sys_RoleModuleButton",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_User_RefreshToken_UserId",
                table: "Sys_User_RefreshToken",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_UserRole_RoleId",
                table: "Sys_UserRole",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_Sys_UserRole_UserId",
                table: "Sys_UserRole",
                column: "UserId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Sys_Dictionary");

            migrationBuilder.DropTable(
                name: "Sys_Job");

            migrationBuilder.DropTable(
                name: "Sys_ModuleButton");

            migrationBuilder.DropTable(
                name: "Sys_ProcedureException");

            migrationBuilder.DropTable(
                name: "Sys_Resume");

            migrationBuilder.DropTable(
                name: "Sys_RoleModule");

            migrationBuilder.DropTable(
                name: "Sys_RoleModuleButton");

            migrationBuilder.DropTable(
                name: "Sys_TokenGrey");

            migrationBuilder.DropTable(
                name: "Sys_User_RefreshToken");

            migrationBuilder.DropTable(
                name: "Sys_UserRole");

            migrationBuilder.DropTable(
                name: "Sys_Button");

            migrationBuilder.DropTable(
                name: "Sys_Module");

            migrationBuilder.DropTable(
                name: "Sys_Role");

            migrationBuilder.DropTable(
                name: "Sys_User");
        }
    }
}
